#!/usr/bin/python
#-*- coding: utf-8 -*-

import os
import hashlib

def getFileMD5(filename):
    with open(filename,'rb') as f:
        md5obj = hashlib.md5()
        md5obj.update(f.read())
        hash = md5obj.hexdigest()
        print hash
        return hash

def execShell(shell):
    # if 'linux' in CURRENT_PLATFORM:
    return os.popen(shell)